package com.deductive.domain.special;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.deductive.common.core.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.multipart.MultipartFile;


@Data
@ApiModel(value = "SpecialDataTree", description = "专题数据目录树")
@TableName(value = "special_data_tree")
public class SpecialDataTree extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 数据名称
     */
    @ApiModelProperty(value = "数据名称")
    @TableField(value = "name")
    private String name;

    /**
     * 父Id
     */
    @ApiModelProperty(value = "父Id")
    @TableField(value = "parent_id")
    private Integer parentId;



    /**
     * 是否数据
     */
    @ApiModelProperty(value = "是否数据")
    @TableField(value = "is_data")
    private Integer isData;

    /**
     * 关联表名
     */
    @ApiModelProperty(value = "关联表名")
    @TableField(value = "table_name")
    private String tableName;

    /**
     * 数据类型
     */
    @ApiModelProperty(value = "数据类型")
    @TableField(value = "data_type")
    private String dataType;



    @TableField(value = "count")
    private Long count;

    @TableField(value = "icon")
    private String icon;

    @TableField(value = "order_num")
    private Integer orderNum;

    @TableField(value = "color")
    private String color;

    @TableField(value = "opacity")
    private String opacity;

    @TableField(value = "geoserver_url")
    private String geoserverUrl;

    @TableField(value = "visible")
    private Long visible;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "dept_id")
    private Long deptId;

    @TableField(exist = false)
    private Integer limit;


    @TableField(exist = false)
    private String parentName;

    @TableField(exist = false)
    private MultipartFile file;


}
